package org.example.atry.util;

import java.util.List;

public class paga{
//分页实体类
    private  int pageNum;//当前页
    private  int pageSize;//每页条数
    private  int totalPages;//总页数
    private  int totalCounts;//总条数
    private  int prepage;//上一页
    private  int nextpage;//下一页
    private  int lastpage;//尾页
    private  int firstpage=1;//首页

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getTotalCounts() {
        return totalCounts;
    }

    public void setTotalCounts(int totalCounts) {
        this.totalCounts = totalCounts;
    }

    public int getPrepage() {
        return prepage;
    }

    public void setPrepage(int prepage) {
        this.prepage = prepage;
    }

    public int getNextpage() {
        return nextpage;
    }

    public void setNextpage(int nextpage) {
        this.nextpage = nextpage;
    }

    public int getLastpage() {
        return lastpage;
    }

    public void setLastpage(int lastpage) {
        this.lastpage = lastpage;
    }

    public int getFirstpage() {
        return firstpage;
    }

    public void setFirstpage(int firstpage) {
        this.firstpage = firstpage;
    }

    public paga(int pageNum, int pageSize, int totalPages, int totalCounts, int prepage, int nextpage, int lastpage, int firstpage) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalPages = totalPages;
        this.totalCounts = totalCounts;
        this.prepage = prepage;
        this.nextpage = nextpage;
        this.lastpage = lastpage;
        this.firstpage = firstpage;
    }

    public paga(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public paga() {
    }

    @Override
    public String toString() {
        return "paga{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", totalPages=" + totalPages +
                ", totalCounts=" + totalCounts +
                ", prepage=" + prepage +
                ", nextpage=" + nextpage +
                ", lastpage=" + lastpage +
                ", firstpage=" + firstpage +
                '}';
    }
}
